package com.ruoyi.project.management.delay.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * task 
 * </p>
 *
 * @author ${author}
 * @since 2020-07-16
 */
/*@TableName("zz_task_delay")*/
    /*extends Model<TaskDelay>*/
public class TaskDelay implements Serializable {

    /*private static final long serialVersionUID=1L;*/

    /**
     * delay_Id 延期表id
     */
    /*@TableId(value = "delay_Id", type = IdType.AUTO)*/
    private Integer delay_Id;

    /**
     * applicant 申请人（用户id）
     */
    private Integer applicant;

    /**
     * 申请时间
     */
    private Date application_time;

    /**
     * 申请的延期时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date delay_time;

    /**
     * 延期原因
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String delay_reason;

    /**
     * 批复人（角色）
     */
    private String approved_by;

    /**
     * 批复时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approved_time;

    /**
     * pass 是否通过：0、未通过 1、通过
     */
    private Integer pass;

    /**
     * opinion 详细意见
     */
    private String opinion;

    /**
     * task_id 任务id
     */
    private Integer task_id;

    /**
     * 约定时间：批准的延期时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appointed_time;



    private String user_name;

    private String task_title;

    private String post_name;

    private String content;

    private Date starttime;

    private Date endtime;


    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /*public static long getSerialVersionUID() {
        return serialVersionUID;
    }*/

    public Integer getDelay_Id() {
        return delay_Id;
    }

    public void setDelay_Id(Integer delay_Id) {
        this.delay_Id = delay_Id;
    }

    public Integer getApplicant() {
        return applicant;
    }

    public void setApplicant(Integer applicant) {
        this.applicant = applicant;
    }

    public Date getApplication_time() {
        return application_time;
    }

    public void setApplication_time(Date application_time) {
        this.application_time = application_time;
    }

    public Date getDelay_time() {
        return delay_time;
    }

    public void setDelay_time(Date delay_time) {
        this.delay_time = delay_time;
    }

    public String getDelay_reason() {
        return delay_reason;
    }

    public void setDelay_reason(String delay_reason) {
        this.delay_reason = delay_reason;
    }

    public String getApproved_by() {
        return approved_by;
    }

    public void setApproved_by(String approved_by) {
        this.approved_by = approved_by;
    }

    public Date getApproved_time() {
        return approved_time;
    }

    public void setApproved_time(Date approved_time) {
        this.approved_time = approved_time;
    }

    public Integer getPass() {
        return pass;
    }

    public void setPass(Integer pass) {
        this.pass = pass;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public Integer getTask_id() {
        return task_id;
    }

    public void setTask_id(Integer task_id) {
        this.task_id = task_id;
    }

    public Date getAppointed_time() {
        return appointed_time;
    }

    public void setAppointed_time(Date appointed_time) {
        this.appointed_time = appointed_time;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getTask_title() {
        return task_title;
    }

    public void setTask_title(String task_title) {
        this.task_title = task_title;
    }

    public String getPost_name() {
        return post_name;
    }

    public void setPost_name(String post_name) {
        this.post_name = post_name;
    }
}
